#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QtPrintSupport/QPrintDialog>
#include <QtPrintSupport/QPrinter>
#include <about.h>
#include <QCloseEvent>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

protected:
    void closeEvent(QCloseEvent *event);
private:
    Ui::MainWindow *ui;
    QString fileNameStr;

private slots:
    void newFile();
    void openFile();
    void saveFile();
    void saveASFile();
    void printFile();
    void font();
    void colorFile();
    void datetimeFile();
    void aboutWebsiteFun();
    void aboutUsFun();
};

#endif // MAINWINDOW_H
